<template>
	<view class="order-content">
		<view class="content-item">
			<text class="item-name four">事件类别：</text>
			<text>{{ticketType[districtInfo['事件类别']]}}</text>
		</view>
		<view class="content-item">
			<text class="item-name">上报时间：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo.上报时间 | formatTime}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">上报人：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['联系人']}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">联系方式：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['联系方式']}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">地址：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['地址']}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">事件标题：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['事件标题']}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">问题层面：</text>
			<view style="word-break:break-all;flex: 1;">{{levelObj[districtInfo['问题层面']]}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">所在镇街：</text>
			<view style="word-break:break-all;flex: 1;">星桥街道</view>
		</view>
		<view class="content-item">
			<text class="item-name">事件描述：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['事件描述']}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">处理类型：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['事件描述']}}</view>
		</view>
		<view v-if="districtInfo['处理结果']" class="content-item">
			<text class="item-name">处理结果：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['处理结果'] == 1 ? '解决': '未解决'}}</view>
		</view>
		<view class="content-item">
			<text class="item-name">处理日期：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['处理日期'] | formatTime}}</view>
		</view>
		<view v-if="districtInfo['承办单位']" class="content-item">
			<text class="item-name">承办单位：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['承办单位']}}</view>
		</view>
		<view v-if="districtInfo['承办联系人']" class="content-item">
			<text class="item-name">承办联系人：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['承办联系人']}}</view>
		</view>
		<view v-if="districtInfo['承办联系方式']" class="content-item">
			<text class="item-name">承办联系方式：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['承办联系方式']}}</view>
		</view>
		<view v-if="districtInfo['办理意见']" class="content-item">
			<text class="item-name">办理意见：</text>
			<view style="word-break:break-all;flex: 1;">{{districtInfo['办理意见']}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			districtInfo: {
				type: Object,
				default: () => {}
			},
			ticketStatus: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
				ticketType: this.$type.ticketType,
				levelObj: {
					1: '镇街',
					2: '区级',
					3: '市级及以上'
				}
			}
		}
	}
</script>

<style>
</style>
